﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DjModel
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class PostSearchInfo
    {
        /// <summary>
        /// 分类
        /// </summary>
        public string PostID
        {
            get;
            set;
        }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime STime
        {
            get;
            set;
        }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime ETime
        {
            get;
            set;
        }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author
        {
            get;
            set;
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            get;
            set;
        }
        /// <summary>
        /// 取出文章
        /// </summary>
        public PostGetEnum Status
        {
            get;
            set;
        }
    }



    [Serializable]
    public class PostInfo
    {
        /// <summary>
        /// ID
        /// </summary>
        public int ID
        {
            get;
            set;
        }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author
        {
            get;
            set;
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate
        {
            get;
            set;
        }
        /// <summary>
        /// 内容
        /// </summary>
        public string Content
        {
            get;
            set;
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            get;
            set;
        }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Excerpt
        {
            get;
            set;
        }
        /// <summary>
        /// 状态 0 正常 1草稿 2回收站
        /// </summary>
        public int PostStatus
        {
            get;
            set;
        }
        /// <summary>
        /// 评论数
        /// </summary>
        public int CommentCount
        {
            get;
            set;
        }

        /// <summary>
        /// 浏览数
        /// </summary>
        public int ReadCount
        {
            get;
            set;
        }

        /// <summary>
        /// 文章标签（逗号隔开)
        /// </summary>
        public string TagString
        {
            get;
            set;
        }

        /// <summary>
        /// 分类标签(逗号隔开)
        /// </summary>
        public string CatString
        {
            get;
            set;
        }
    }
}
